<template>
    <div>
        登录页面
        <el-button @click="handleLogin">登录</el-button>
    </div>
</template>

<script setup>
    import { ref } from 'vue';
    import { login } from '@/api/sys/login.js';
    const loginForm = ref({
            account: undefined,
            password: undefined,
            rememberMe: undefined
        })

    function handleLogin(param){
        login(loginForm.value).then(res =>{
            console.log("登录");
            console.log("返回",res);
        })
    }
    
</script>

<style lang="scss" scoped>

</style>@/api/sys/login.js